package dao

import "shop/entity"

func GetUserByShopIdAndUsername(shopId int, username string) *entity.User {
	user := new(entity.User)
	GetDB().Model(user).Where("shop_id", shopId).Where("username", username).Take(user)
	return user
}
